home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2002-11-24 | 1.4 KB | 64 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="7"
- "COUNT"="3"
- "UIPATH"="System\Security\Disabled Features"
- "NAME"="Command Prompt CMD Enabled"
- "VERSION"="1.00"
- "OSVERSION"="000101"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Allow Command Prompt and batch files (default)"
- "TEXT 2"="Disallow Command Prompt but allow batch files"
- "TEXT 3"="Disallow Command Prompt and disallow batch files"
- "DESCRIPTION 1"="This setting can be used to allow or disallow the command prompt and/or batch files (*.BAT, *.CMD)."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
-
- sPath="HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\DisableCMD"
-
-
- Sub Plugin_Initialize
- i=RegReadValue(sPath)
- if i=0 or IsEmpty(i) then
- Call SetUIElement(1,true)
- else
- if i=2 then
- Call SetUIElement(2,true)
- else
- Call SetUIElement(3,true)
- end if
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- i=0
-
- if GetUIElement(1)=true then i=0
- if GetUIElement(2)=true then i=2
- if GetUIElement(3)=true then i=1
-
-
-
- if i>0 then
- Call RegWriteValue(sPath,i,2)
- else
- s=RegReadValue(sPath)
- if IsEmpty(s)=false then
- Call RegDeleteValue(sPath)
- end if
- end if
- End Sub
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-